<div class="bjui-pageContent">
    <form action="admin/process/field-edit" data-toggle="ajaxform" data-options="{closeCurrent:true,tabid:'process-list'}">
        <div class="bjui-row col-3">

            <label class="row-label">工序名称</label>
            <div class="row-input">{{$info->title}}</div><br>

            <label class="row-label">选择字段</label>
            <div>
                @foreach ($data as $val)
                    <div>
                        <label class="row-label">{{$val['title']}}</label><br>
                        @foreach ($val['data'] as $v)
                            <label class="row-label"></label>
                            <div class="row-input">
                                @if (in_array($v['id'],$info_field_arr))
                                    <input type="checkbox" checked name="id_arr[]" value="{{$v['id']}}">{{$v['title']}}
                                @else
                                    <input type="checkbox" name="id_arr[]" value="{{$v['id']}}">{{$v['title']}}
                                @endif
                            </div>
                        @endforeach
                    </div>
                @endforeach<br>
            </div>
            <label class="row-label"></label>
            <div class="row-input">
                <button type="submit" class="btn-default">保存</button>
            </div>
        </div>
        <input type="hidden" name="id" value="{{$info->id}}">
        <!--<div class="bjui-pageFooter">
            <ul>
                <li><button type="button" class="btn-close" data-icon="close">取消</button></li>
                <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
            </ul>
        </div>-->
    </form>
</div>